package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.UserMapper;
import model.User;
import service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	UserMapper userMapper;
	
	
	@Override
	public List<User> findAllUser() {
		return userMapper.findAll();
	}
	
	@Override
	public User findUserById(int id) {
		return userMapper.findUserById(id);
	}

}
